SearchPlate

Function

This API is used to search and match license plates.

Request Message

Parameter Description

Table 1

ParameterRangeTypeDescription
MsgIdnull
StartTime"2020-07-12 00:00:00"stringSearch start time
EndTime"2020-07-1223:59:59"stringSearch end time
Chn0~MAX_PARA_CHN_NUMarrayThe channel to search, the value represents the channel
AlarmGroup[1, 2]integer arrayThe license plate group to which the comparison result belongs during real-time capture
PlatesIdstring arrayList of license plate numbers
MaxErrorCharCnt0-5intError tolerance rate, the maximum number of different strings allowed when searching for a matching string
SortTypeSort by
enum AIResultSortType {
ARST_Ascending = 0, // Ascending order
ARST_Descending = 1, //Descending order
ARST_None = 2,
ARST_Max
};
Engine0,1intSearch Engines (0 and 1)

Sample:

POST API/AI/SnapedObjects/SearchPlate HTTP/1.1
{
    "version":"1.0",
    "data": {
        "StartTime": "2021-08-15 00:00:00",
        "EndTime": "2021-08-17 23:59:59",
        "Chn": [2, 3],
        "AlarmGroup": [2, 3, 4],
        "PlatesId": ["3918K"],
        "MaxErrorCharCnt": 3,
        "SortType": 0,
        "Engine": 0
    }
}

Response Message

Table 2

ParameterRangeTypeDescription
MsgIdnull
Resultintlicense plate search results,SeeTable 3
Count0intThe actual number of captured objects

Table 3

Result TypeCOMMENT
AORT_SUCCESS = 0Success
AORT_NO_DB = -1No database
AORT_DB_EXEC_FAILED = -2Database execution failed
AORT_CALC_FEATURE_FAILED = -3Feature extraction failed
AORT_CANCELED = -4Cancelled
AORT_NO_DISK = -5No hard drive
AORT_DISK_ERROR = -6Hard disk error
AORT_EXIST = -7Existed
AORT_GROUP_INVALID = -8Group invalid
AORT_NOT_EXIST = -9Does not exist
AORT_MORE_FILE_EXIST = -10File already exists
AORT_SEARCH_ERROR = -11Search error
AORT_OVER_MAX_COUNT = -12Limit exceeded
AORT_UPDATING_FEATURE = -13Updating feature values
AORT_NO_USABLE_IPC = -14No IPC available for eigenvalue calculation
AORT_INVALID_PARAM = -15Invalid parameter
AORT_INVALID_FORMAT = -16Wrong format
AORT_INVALID_RES = -17Wrong resolution
AORT_INVALID_MEM = -18File too large error
AORT_CREAT_FAILED = -19Creation failed
AORT_MD5_NOT_MATCH = -20MD5 mismatch
AORT_POS_ERROR = -21Location error
AORT_SIZE_ERROR = -22Wrong size
AORT_NOT_READY = -23Not ready
AORT_INVALID_DB = -24Invalid database

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "data": {
        "Result": 0,
        "Count": 129
    }
}

Error Code

See Response Messages Body and Common error_code for more information.